<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlterKfMybankFuyouBillRecordAddClearingStore extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('mybank_fuyou_bill_record', function (Blueprint $table) {
            $table->unsignedBigInteger("settleShopId")->default(0)->comment("结算门店 ID")->after('shopId');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('mybank_fuyou_bill_record', function (Blueprint $table) {
            $table->dropColumn('settleShopId');
        });
    }
}
